[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 new                     Try to Create Object by Allocating Heap Space

 my_pointer_to_name = new name;

    The new operator attempts to create an object by allocating
    sufficient bytes on the heap for it (i.e. it tries to allocate
    sizeof(object) bytes). It's an easy was of using the heap; for
    example:

               my_name *my_nameptr;
                :
                :
               my_nameptr = new my_name;

    A NULL pointer is returned if new was unsuccessful.

See Also: delete
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson